package com.wzapp.sitposture.common.constant;/**
 * Created by qianglong on 2018/1/22.
 */

import java.util.HashMap;
import java.util.Map;

/**
 * 消息模块常量定义<br/>
 *
 * @author ql
 * @create 2018-01-22 17:25
 **/
public class MessageConst {

    /**
     * 通知类型：system 系统通知，praise 点赞，favorite 收藏，comment 留言，order 订单
     */
    public static final String TYPE_SYSTEM = "system";
    public static final String TYPE_PRAISE = "praise";
    public static final String TYPE_FAVORITE = "favorite";
    public static final String TYPE_COMMENT = "comment";
    public static final String TYPE_ORDER = "order";
    /**
     * V1.0互动通知 包含 praise 点赞，favorite 收藏，comment 留言
     */
    public static final String TYPE_INTERACT = "interact";

    /**
     * 订单消息状态（与订单状态不是一个东西） 0-待付款，1-已付款，2-已确认，3-申请退款，4-同意退款，5-驳回退款,6自动取消
     */
    public static final int ORDER_MSG_UNPAY = 0;
    public static final int ORDER_MSG_PAYED = 1;
    public static final int ORDER_MSG_CONFIRM = 2;
    public static final int ORDER_MSG_REFUNDING = 3;
    public static final int ORDER_MSG_REFUNDED = 4;
    public static final int ORDER_MSG_REJECT_REFUND = 5;
    public static final int ORDER_MSG_CANCEL = 6;

    /*
     * 消息提醒格式
     */
    public static final String ORDER_MOMENT_UNPAY = "{}拍下了我的{}，等待付款";
    public static final String ORDER_MOMENT_PAY = "{}成功购买了我的{}";
    public static final String ORDER_MOMENT_REFUNDING = "{}发起了退款";
    public static final String ORDER_MOMENT_REFUNDED = "{}同意了您的退款请求";
    public static final String ORDER_MOMENT_REJECT_REFUND = "{}驳回了您的退款请求";
    /*
     * 订单消息内容格式
     */
    public static final String ORDER_MSG_CONTENT_UNPAY = "拍下了我的{}，待付款";
    public static final String ORDER_MSG_CONTENT_PAY = "成功购买了我的{}";
    public static final String ORDER_MSG_CONTENT_REFUNDING = "买家向您申请了退款";
    public static final String ORDER_MSG_CONTENT_REFUNDED = "卖家同意了您的退款请求";
    public static final String ORDER_MSG_CONTENT_REJECT_REFUND = "卖家驳回了您的退款请求";
    public static final String ORDER_MSG_CONTENT_CANCEL = "您的订单因为长时间未支付已自动取消";

    public static final Map<String, String> subjectType = new HashMap<>();

    static {
        subjectType.put("photo", "动态");
        subjectType.put("article", "动态");
        subjectType.put("video", "动态");
        subjectType.put("special_topic", "专题");
        subjectType.put("video_course", "教学视频");
        subjectType.put("major_course", "线下课程");
    }

    ;

    public static final String TITLE_MOMENT_AUTO_PULL_OFF = "《{}》被下架";
    public static final String CONTENT_MOMENT_AUTO_PULL_OFF = "您发布的《{}》,由于“{}”，已被平台下架。";

    public static final String TITLE_MOMENT_REJECT = "《{}》审核未通过";
    public static final String CONTENT_MOMENT_REJECT = "您发布的《{}》,由于“{}”，审核未通过。";

    public static final String TITLE_MOMENT_COMMODITY_PULL_OFF = "商品下架通知";
    public static final String MOMENT_EXPIRED_PULL_OFF = "您的线下课程《{}》今日开课，平台已自动为您下架，您可在<我的-我卖的-商品管理>中查看。";
    public static final String MOMENT_LESS_STUDENT_MIN_PULL_OFF = "您的线下课程《{}》人满开班未达开班条件，平台已自动为您下架，您可在<我的-我卖的-商品管理>中查看。";

    public static final String TITLE_MOMENT_SOLDOUT = "《{}》已售罄";
    public static final String CONTENT_MOMENT_SOLDOUT = "您的线下课程《{}》已售罄，您可在<我的-我卖的-商品管理>中查看。";

    public static final String TITLE_MOMENT_DELETE = "《{}》被删除";
    public static final String CONTENT_MOMENT_DELETE = "您发布的《{}》,由于“{}”，已被平台删除。";

    public static final String TITLE_GUARANTEE_MODIFY  = "{}保障变更通知";
    public static final String CONTENT_GUARANTEE_MODIFY =
            "您之前选择的“{}”，调整为“{}”，当前保障已下线，如同意使用调整后的保障，请点击【同意替换】，批量替换；如不再使用此保障，请忽略。如有疑问请咨询：{}";

    public static final String TITLE_GUARANTEE_DELETE  = "{}保障变更通知";
    public static final String CONTENT_GUARANTEE_DELETE = "您之前选择的“{}”保障已下线，如有疑问请咨询：{}";

    public static final String TITLE_COUPON  = "一张优惠劵已经放入您的账户";

    public static final String TITLE_USER_CERTIFICATION_PASS  = "身份认证审核已通过";
    public static final String CONTENT_USER_CERTIFICATION_PASS  = "您提交的身份认证，现已审核通过。";
    public static final String CONTENT_USER_CERTIFICATION_PASS_PC  = "您提交的身份认证，现已审核通过。";

    public static final String TITLE_USER_CERTIFICATION_REJECT  = "身份认证审核未通过";
    public static final String CONTENT_USER_CERTIFICATION_REJECT  = "您提交的身份认证，由于“{}”审核未通过，请重新认证。";
    public static final String CONTENT_USER_CERTIFICATION_REJECT_PC  = "您提交的身份认证，由于“{}”审核未通过，请进入APP重新认证。";

}
